package me.wangqu.weiyouqu.web.rest.business.service;

import me.wangqu.weiyouqu.web.rest.business.dao.VersionDao;
import me.wangqu.weiyouqu.web.rest.business.model.VersionModel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by joln on 2016/7/30.
 */
@Service
public class VersionService {

    private final Logger log = LoggerFactory.getLogger(VersionService.class);

    @Autowired
    private VersionDao versionDao;

    /**
     * 获取版本信息
     *
     * @return
     */
    public VersionModel getVersionData() {
        try {
            return versionDao.getVersionData();
        } catch (Exception e) {
            log.error("获取版本信息失败", e.getMessage());
        }
        return null;
    }

}
